# -*- coding: utf-8 -*-
from django.db import models
from sisead.mat.models import Coordenacao

class material(models.Model):
    tombo = models.CharField(max_length = 50)
    descricao = models.CharField(max_length = 100)
    tipo = models.IntegerField()
    procedencia = models.IntegerField()
    estado_concerv = models.CharField(max_length = 50)
    coordenacao = models.ForeignKey(Coordenacao)
    disponibilidade = models.BooleanField()
    

class emprestimo(models.Model):
    responsavel = models.IntegerField()
    data_emp = models.DateField()
    data_devolucao = models.DateField()
    coordenacao = models.ForeignKey(Coordenacao)
    modificador = models.IntegerField()
    
    
'''class emp_mat(models.Model):
    emprestimo = models.ForeignKey(emprestimo)
    material = models.ForeignKey(material)
    devolvido = models.BooleanField()'''
    
class procedencia(models.Model):
    descricao = models.CharField(max_length = 100)
    